/* eslint-disable */
export function callNativeApi(api) {
  if (Object.prototype.hasOwnProperty.call(window, 'dx')) {
    return window.dx[api]();
  } else if (Object.prototype.hasOwnProperty.call(window, api)) {
    return window[api]();
  }
  return null;
}
